package csdn.chouxiang.li04;

 public abstract class Animal {
    private String color;
    private int age;

    public Animal(){}
    public Animal(String color,int age){
        this.color=color;
        this.age=age;
    }

    public abstract void eat();
    public abstract void sleep();

    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }


}
